﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="DayReport.aspx.cs" Inherits="MDH_ReportTTLL" %>

<%@ Register Src="../Interface/header.ascx" TagName="header" TagPrefix="uc1" %>
<%@ Register Src="../Interface/footer.ascx" TagName="footer" TagPrefix="uc2" %>
<%@ Register TagPrefix="hmwebmenu" TagName="MyMenu" Src="~/Interface/menu.ascx"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Tong hop bao cao theo ngay</title>
    <LINK href="../VNPTStyle.css" type="text/css" rel="stylesheet">
    <script language="javascript" src="../JS/calender.js">
    </script>

    <link href="../VNPTStyle.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <table height="450" width="900" cellpadding="0" cellspacing="0">
            <tr>
                <td colspan="2" width="100%" style="height: 14px">
                    <uc1:header ID="Header1" runat="server" />
                </td>
            </tr>
            <tr>
                <td colspan="2" height="10">
                    <hmwebmenu:MyMenu ID="MenuTop" runat="server" MenuToLoad="TopMenu" />
                </td>
            </tr>
            <tr>
                <td colspan="2" height="80%" valign="top" style="height: 410px">
                    <table cellpadding="0" cellspacing="0" width="500">
                        <tr>
                            <td style="height: 28px" valign="top">
                                <asp:Label ID="Label5" runat="server" Font-Bold="True"
                                    Text="Báo cáo => Tổng hợp báo cáo của các đơn vị trong ngày"></asp:Label></td>
                        </tr>
                        <tr>
                            <td style="height: 30px">
                                <asp:Label ID="Label10" runat="server" Font-Bold="True" Text="Chọn loại báo cáo: "
                                    Width="120px"></asp:Label><asp:DropDownList ID="ddlReport" runat="server" AutoPostBack="True" OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged">
                                    <asp:ListItem Selected="True" Value="99999">Chọn loại b&#225;o c&#225;o</asp:ListItem>
                                    <asp:ListItem Value="0">B&#225;o c&#225;o ph&#225;t triển dịch vụ</asp:ListItem>
                                    <asp:ListItem Value="1">B&#225;o c&#225;o ti&#234;u thụ xăng dầu</asp:ListItem>
                                    <asp:ListItem Value="2">B&#225;o c&#225;o th&#244;ng tin li&#234;n lạc</asp:ListItem>
                                    <asp:ListItem Value="3">B&#225;o c&#225;o t&#236;nh trạng trong ng&#224;y</asp:ListItem>
                                </asp:DropDownList></td>
                        </tr>
                        <tr>
                            <td>
                                &nbsp;<asp:MultiView ID="mvReport" runat="server">
                                    <asp:View ID="View1" runat="server">
                                <asp:Label ID="Label3" runat="server" Font-Bold="True" CssClass="HeaderTitles">Báo cáo phát triển dịch vụ</asp:Label><br />
                                        <asp:Label ID="Label1" runat="server" Text="Chọn loại dịch vụ: "></asp:Label><asp:DropDownList
                                            ID="ddlService" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlService_SelectedIndexChanged">
                                        </asp:DropDownList><br />
                                        <asp:MultiView ID="mvPTDV" runat="server">
                                            <asp:View ID="View5" runat="server">
                                                <asp:GridView ID="gvPTDV" runat="server" AutoGenerateColumns="False" BackColor="White"
                                                    BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px" CellPadding="3" Width="600px" AllowPaging="True" OnPageIndexChanging="gvPTDV_PhanTrang">
                                                    <RowStyle ForeColor="#000066" />
                                                    <Columns>
                                                        <asp:BoundField DataField="LocalName" HeaderText="T&#234;n đơn vị" SortExpression="LocalName" >
                                                            <HeaderStyle Width="100px" />
                                                        </asp:BoundField>
                                                        <asp:BoundField DataField="ServiceName" HeaderText="Loại dịch vụ" SortExpression="ServiceName" >
                                                            <HeaderStyle Width="100px" />
                                                        </asp:BoundField>
                                                        <asp:TemplateField>
                                                            <HeaderTemplate>
                                                                Tổng số
                                                            </HeaderTemplate>
                                                            <HeaderStyle Width="50px" />
                                                            <ItemTemplate>
                                                                <%# String.Format("{0:#.##}", Eval("SumTotal"))%>
                                                            </ItemTemplate>
                                                            <ItemStyle HorizontalAlign="Right" />
                                                        </asp:TemplateField>
                                                        <asp:TemplateField>
                                                            <HeaderTemplate>
                                                                Ph&#225;t triển mới
                                                            </HeaderTemplate>
                                                            <HeaderStyle Width="50px" />
                                                            <ItemTemplate>
                                                                <%# String.Format("{0:#.##}", Eval("SumNew"))%>
                                                            </ItemTemplate>
                                                            <ItemStyle HorizontalAlign="Right" />
                                                        </asp:TemplateField>
                                                        <asp:TemplateField>
                                                            <HeaderTemplate>
                                                                Tạm dừng
                                                            </HeaderTemplate>
                                                            <HeaderStyle Width="50px" />
                                                            <ItemTemplate>
                                                                <%# String.Format("{0:#.##}", Eval("SumPause"))%>
                                                            </ItemTemplate>
                                                            <ItemStyle HorizontalAlign="Right" />
                                                        </asp:TemplateField>
                                                        <asp:TemplateField>
                                                            <HeaderTemplate>
                                                                Hủy bỏ
                                                            </HeaderTemplate>
                                                            <HeaderStyle Width="50px" />
                                                            <ItemTemplate>
                                                                <%# String.Format("{0:#.##}", Eval("SumDestroy"))%>
                                                            </ItemTemplate>
                                                            <ItemStyle HorizontalAlign="Right" />
                                                        </asp:TemplateField>
                                                    </Columns>
                                                    <FooterStyle BackColor="White" ForeColor="#000066" />
                                                    <PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left" />
                                                    <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
                                                    <HeaderStyle BackColor="#006699" Font-Bold="True" ForeColor="White" />
                                                </asp:GridView>
                                                &nbsp;&nbsp;
                                            </asp:View>
                                        </asp:MultiView><asp:Label ID="Label11" runat="server" Text="Tổng số toàn tỉnh"></asp:Label><asp:GridView ID="gvSumAllService" runat="server" AutoGenerateColumns="False" BackColor="White"
                                                    BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px" CellPadding="3" Width="600px" AllowPaging="True"  OnPageIndexChanging="gvSumAllService_PhanTrang">
                                                    <RowStyle ForeColor="#000066" />
                                                    <Columns>
                                                        <asp:BoundField DataField="ServiceName" HeaderText="Loại dịch vụ" SortExpression="ServiceName" >
                                                            <HeaderStyle Width="150px" />
                                                        </asp:BoundField>
                                                        <asp:TemplateField>
                                                            <HeaderTemplate>
                                                                Tổng số
                                                            </HeaderTemplate>
                                                            <ItemTemplate>
                                                                <%# String.Format("{0:#.##}", Eval("SumTotal"))%>
                                                            </ItemTemplate>
                                                            <HeaderStyle Width="50px" />
                                                            <ItemStyle HorizontalAlign="Right" />
                                                        </asp:TemplateField>
                                                        <asp:TemplateField>
                                                            <HeaderTemplate>
                                                                Ph&#225;t triển mới
                                                            </HeaderTemplate>
                                                            <ItemTemplate>
                                                                <%# String.Format("{0:#.##}", Eval("SumNew"))%>
                                                            </ItemTemplate>
                                                            <HeaderStyle Width="50px" />
                                                            <ItemStyle HorizontalAlign="Right" />
                                                        </asp:TemplateField>
                                                        <asp:TemplateField>
                                                            <HeaderTemplate>
                                                                Tạm dừng
                                                            </HeaderTemplate>
                                                            <ItemTemplate>
                                                                <%# String.Format("{0:#.##}", Eval("SumPause"))%>
                                                            </ItemTemplate>
                                                            <HeaderStyle Width="50px" />
                                                            <ItemStyle HorizontalAlign="Right" />
                                                        </asp:TemplateField>
                                                        <asp:TemplateField>
                                                            <HeaderTemplate>
                                                                Hủy bỏ
                                                            </HeaderTemplate>
                                                            <ItemTemplate>
                                                                <%# String.Format("{0:#.##}", Eval("SumDestroy"))%>
                                                            </ItemTemplate>
                                                            <HeaderStyle Width="50px" />
                                                            <ItemStyle HorizontalAlign="Right" />
                                                        </asp:TemplateField>
                                                    </Columns>
                                                    <FooterStyle BackColor="White" ForeColor="#000066" />
                                                    <PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left" />
                                                    <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
                                                    <HeaderStyle BackColor="#006699" Font-Bold="True" ForeColor="White" />
                                                </asp:GridView>
                                            </asp:View>
                                    <asp:View ID="View2" runat="server">
                                <asp:Label ID="Label7" runat="server" Font-Bold="True" CssClass="HeaderTitles">Báo cáo tiêu thụ xăng dầu</asp:Label><br />
                                        <asp:Label ID="Label13" runat="server" Text="Chọn đơn vị:"></asp:Label><asp:DropDownList
                                            ID="ddlLocal" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlLocal_SelectedIndexChanged">
                                        </asp:DropDownList><asp:MultiView ID="mvTT" runat="server">
                                            <asp:View ID="View6" runat="server">
                                                <asp:GridView ID="gvTTXD" runat="server" AllowPaging="True" AutoGenerateColumns="False"
                                    BackColor="White" BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px"
                                    CellPadding="3" Width="800px" OnPageIndexChanging="gvTTXD_PhanTrang">
                                                    <RowStyle ForeColor="#000066" />
                                                    <Columns>
                                                        <asp:BoundField DataField="LocalName" HeaderText="T&#234;n đơn vị" >
                                                            <HeaderStyle Width="80px" />
                                                        </asp:BoundField>
                                                        <asp:BoundField DataField="StationName" HeaderText="T&#234;n trạm" SortExpression="StationName" >
                                                            <HeaderStyle Width="80px" />
                                                        </asp:BoundField>
                                                        <asp:TemplateField>
                                                            <HeaderTemplate>
                                                                Giờ chạy m&#225;y nổ(phút)
                                                            </HeaderTemplate>
                                                            <ItemTemplate>
                                                                <%# String.Format("{0:#.##}",Eval("Phut"))%>
                                                            </ItemTemplate>
                                                            <HeaderStyle Width="50px" />
                                                            <ItemStyle HorizontalAlign="Right" />
                                                        </asp:TemplateField>
                                                        <asp:TemplateField>
                                                            <HeaderTemplate>
                                                                Ti&#234;u thụ xăng(l&#237;t)
                                                            </HeaderTemplate>
                                                            <ItemTemplate>
                                                                <%# String.Format("{0:#.##}", Eval("SumGas"))%>
                                                            </ItemTemplate>
                                                            <HeaderStyle Width="50px" />
                                                            <ItemStyle HorizontalAlign="Right" />
                                                        </asp:TemplateField>
                                                        <asp:TemplateField>
                                                            <HeaderTemplate>
                                                                Ti&#234;u thụ dầu(l&#237;t)
                                                            </HeaderTemplate>
                                                            <ItemTemplate>
                                                                <%# String.Format("{0:#.##}", Eval("SumOil"))%>
                                                            </ItemTemplate>
                                                            <HeaderStyle Width="50px" />
                                                            <ItemStyle HorizontalAlign="Right" />
                                                        </asp:TemplateField>
                                                    </Columns>
                                                    <FooterStyle BackColor="White" ForeColor="#000066" />
                                                    <PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left" />
                                                    <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
                                                    <HeaderStyle BackColor="#006699" Font-Bold="True" ForeColor="White" />
                                                </asp:GridView>
                                            </asp:View>
                                        </asp:MultiView><asp:Label ID="Label12" runat="server" Text="Tổng số toàn tỉnh"></asp:Label><asp:GridView ID="gvSumAllTT" runat="server" AutoGenerateColumns="False"
                                    BackColor="White" BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px"
                                    CellPadding="3" Width="600px" OnPageIndexChanging="gvSumAllTT_PhanTrang" AllowPaging="True">
                                            <RowStyle ForeColor="#000066" />
                                            <Columns>
                                                <asp:TemplateField>
                                                    <HeaderTemplate>
                                                        Giờ chạy m&#225;y nổ(phút)
                                                    </HeaderTemplate>
                                                    <ItemTemplate>
                                                        <%# String.Format("{0:#.##}",Eval("Phut"))%>
                                                    </ItemTemplate>
                                                    <HeaderStyle Width="50px" />
                                                    <ItemStyle HorizontalAlign="Right" />
                                                </asp:TemplateField>
                                                <asp:TemplateField>
                                                    <HeaderTemplate>
                                                        Ti&#234;u thụ xăng(l&#237;t)
                                                    </HeaderTemplate>
                                                    <ItemTemplate>
                                                        <%# String.Format("{0:#.##}", Eval("SumGas"))%>
                                                    </ItemTemplate>
                                                    <HeaderStyle Width="50px" />
                                                    <ItemStyle HorizontalAlign="Right" />
                                                </asp:TemplateField>
                                                <asp:TemplateField>
                                                    <HeaderTemplate>
                                                        Ti&#234;u thụ dầu(l&#237;t)
                                                    </HeaderTemplate>
                                                    <ItemTemplate>
                                                        <%# String.Format("{0:#.##}", Eval("SumOil"))%>
                                                    </ItemTemplate>
                                                    <HeaderStyle Width="50px" />
                                                    <ItemStyle HorizontalAlign="Right" />
                                                </asp:TemplateField>
                                            </Columns>
                                            <FooterStyle BackColor="White" ForeColor="#000066" />
                                            <PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left" />
                                            <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
                                            <HeaderStyle BackColor="#006699" Font-Bold="True" ForeColor="White" />
                                        </asp:GridView>
                                        <br />
                                        &nbsp;<br />
                                </asp:View>
                                    <asp:View ID="View3" runat="server">
                                <asp:Label ID="Label8" runat="server" Font-Bold="True" CssClass="HeaderTitles">Báo cáo thông tin liên lạc trong ngày</asp:Label><br />
                                        <asp:Label ID="Label2" runat="server" Text="Chọn loại dịch vụ: "></asp:Label><asp:DropDownList
                                            ID="ddlService1" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlService1_SelectedIndexChanged">
                                        </asp:DropDownList><asp:MultiView ID="mvTTLL" runat="server">
                                            <asp:View ID="View7" runat="server">
                                                <asp:GridView ID="gvTTLL" runat="server" AutoGenerateColumns="False" BackColor="White"
                                                    BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px" CellPadding="3" Width="600px" AllowPaging="True" OnPageIndexChanging="gvTTLL_PhanTrang">
                                                    <RowStyle ForeColor="#000066" />
                                                    <Columns>
                                                        <asp:BoundField DataField="LocalName" HeaderText="T&#234;n đơn vị" SortExpression="LocalName" >
                                                            <HeaderStyle Width="100px" />
                                                        </asp:BoundField>
                                                        <asp:BoundField DataField="ServiceName" HeaderText="Loại dịch vụ" SortExpression="ServiceName" >
                                                            <HeaderStyle Width="100px" />
                                                        </asp:BoundField>
                                                        <asp:TemplateField>
                                                            <HeaderTemplate>
                                                                Mất do máy
                                                            </HeaderTemplate>
                                                            <ItemTemplate>
                                                                <%# String.Format("{0:#.##}", Eval("SUMLostDoMay"))%>
                                                            </ItemTemplate>
                                                            <HeaderStyle Width="50px" />
                                                            <ItemStyle HorizontalAlign="Right" />
                                                        </asp:TemplateField>
                                                        <asp:TemplateField>
                                                            <HeaderTemplate>
                                                                Mất do dây
                                                            </HeaderTemplate>
                                                            <ItemTemplate>
                                                                <%# String.Format("{0:#.##}", Eval("SUMLostDoDay"))%>
                                                            </ItemTemplate>
                                                            <HeaderStyle Width="50px" />
                                                            <ItemStyle HorizontalAlign="Right" />
                                                        </asp:TemplateField>
                                                        <asp:TemplateField>
                                                            <HeaderTemplate>
                                                                Khác
                                                            </HeaderTemplate>
                                                            <ItemTemplate>
                                                                <%# String.Format("{0:#.##}", Eval("SUMKhac"))%>
                                                            </ItemTemplate>
                                                            <HeaderStyle Width="50px" />
                                                            <ItemStyle HorizontalAlign="Right" />
                                                        </asp:TemplateField>
                                                    </Columns>
                                                    <FooterStyle BackColor="White" ForeColor="#000066" />
                                                    <PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left" />
                                                    <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
                                                    <HeaderStyle BackColor="#006699" Font-Bold="True" ForeColor="White" />
                                                </asp:GridView>
                                                <br />
                                                &nbsp;
                                            </asp:View>
                                        </asp:MultiView>
                                                <asp:Label ID="Label4" runat="server" Text="Tổng số toàn tỉnh"></asp:Label><asp:GridView ID="gvAllTTLL" runat="server" AutoGenerateColumns="False" BackColor="White"
                                                    BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px" CellPadding="3" Width="600px" AllowPaging="True" OnPageIndexChanging="gvAllTTLL_PhanTrang">
                                                    <RowStyle ForeColor="#000066" />
                                                    <Columns>
                                                        <asp:BoundField DataField="ServiceName" HeaderText="Loại dịch vụ" SortExpression="ServiceName" >
                                                            <HeaderStyle Width="150px" />
                                                        </asp:BoundField>
                                                        <asp:TemplateField>
                                                            <HeaderTemplate>
                                                                Mất do máy
                                                            </HeaderTemplate>
                                                            <ItemTemplate>
                                                                <%# String.Format("{0:#.##}", Eval("SumLostDoMay"))%>
                                                            </ItemTemplate>
                                                            <HeaderStyle Width="50px" />
                                                            <ItemStyle HorizontalAlign="Right" />
                                                        </asp:TemplateField>
                                                        <asp:TemplateField>
                                                            <HeaderTemplate>
                                                                Mất do dây
                                                            </HeaderTemplate>
                                                            <ItemTemplate>
                                                                <%# String.Format("{0:#.##}", Eval("SumLostDoDay"))%>
                                                            </ItemTemplate>
                                                            <HeaderStyle Width="50px" />
                                                            <ItemStyle HorizontalAlign="Right" />
                                                        </asp:TemplateField>
                                                        <asp:TemplateField>
                                                            <HeaderTemplate>
                                                                Khác
                                                            </HeaderTemplate>
                                                            <ItemTemplate>
                                                                <%# String.Format("{0:#.##}", Eval("SumKhac"))%>
                                                            </ItemTemplate>
                                                            <HeaderStyle Width="50px" />
                                                            <ItemStyle HorizontalAlign="Right" />
                                                        </asp:TemplateField>
                                                    </Columns>
                                                    <FooterStyle BackColor="White" ForeColor="#000066" />
                                                    <PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left" />
                                                    <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
                                                    <HeaderStyle BackColor="#006699" Font-Bold="True" ForeColor="White" />
                                                </asp:GridView>
                                            </asp:View>
                                    <asp:View ID="View4" runat="server">
                                        <asp:Label ID="Label6" runat="server" Font-Bold="True" CssClass="HeaderTitles">Báo cáo tình trạng trong ngày</asp:Label><asp:GridView ID="gvSTT" runat="server" AllowPaging="True" BackColor="White"
                                    BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px" CellPadding="3" AutoGenerateColumns="False" Width="900px" OnPageIndexChanging="gvSTT_PhanTrang">
                                    <FooterStyle BackColor="White" ForeColor="#000066" />
                                    <RowStyle ForeColor="#000066" />
                                    <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
                                    <PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left" />
                                    <HeaderStyle BackColor="#006699" Font-Bold="True" ForeColor="White" />
                                    <Columns>
                                        <asp:BoundField DataField="LocalName" HeaderText="T&#234;n đơn vị" SortExpression="LocalName" >
                                            <HeaderStyle Width="100px" />
                                        </asp:BoundField>
                                        <asp:BoundField DataField="Status" HeaderText="T&#236;nh h&#236;nh trong ng&#224;y"
                                            SortExpression="Status" >
                                            <HeaderStyle Width="400px" />
                                        </asp:BoundField>
                                        <asp:BoundField DataField="Roaming" HeaderText="T&#236;nh h&#236;nh Roaming" SortExpression="Roaming" >
                                            <HeaderStyle Width="400px" />
                                        </asp:BoundField>
                                    </Columns>
                                </asp:GridView>
                                <asp:Label ID="lbTTLL" runat="server" Font-Bold="False" ForeColor="Red"></asp:Label></asp:View>
                                </asp:MultiView>&nbsp;</td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    <uc2:footer ID="Footer1" runat="server" />
                </td>
            </tr>
        </table>
    
    </div>
    </form>
</body>
</html>
